# !/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 2023/4/24 14:55
# @Author : xyjiang1216
# @Email : jiangxuyan@nudt.edu.cn
# @File : input.py
# @Version: OpenPlanner2.0
from z3 import Int

from OpenPlanner.core.api.algo_input_class import Link, Stream, Instance


class HugeSlotLink(Link):
    def __init__(self, **kwargs):
        super().__init__(**kwargs)


class HugeSlotStream(Stream):
    def __init__(self, **kwargs):
        super().__init__(**kwargs)
        self.latency_requirement = kwargs['latency_requirement']
        if 'opts' in kwargs:
            self.opts = kwargs['opts']
        else:
            self.opts = {}


# 自定义流实例
class HugeSlotInstance:
    def __init__(self, seq, stream_id, size, period, path_set=[]):
        self.seq = seq
        self.stream_id = stream_id
        self.size = size
        self.period = period
        self.path_set = path_set
